package cn.itsource.exam.service;

import cn.itsource.exam.domain.Role;
import cn.itsource.exam.query.RoleQueryVo;
import cn.itsource.exam.util.PageList;

public interface IRoleService {

    void deleteRole(Long roleId);

    void insertRole(Role role);

    void updateRole(Role role);

    Role selectRoleByRoleId(Long roleId);

    PageList<Role> selectRole(RoleQueryVo roleQueryVo);

    Role selectRoleByName(Role role);

    void batchDeleteRole(Long[] roleIds);

    //保存用户角色关系
    void addUserRole(Long userId,String userType);
}
